package com.ys.entity.sys;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="lili_admin.`sys_admin`", catalog="id")
public class SysAdmin extends BaseEntity<SysAdmin> {

	private Long id; // 主键ID
	private Long roleId; // 角色ID
	private String loginName; // 管理员登录名
	private String loginPass; // 密码（不加密）
	private String remark; // 备注说明
	private String token; // 登录唯一token值
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public SysAdmin setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public SysAdmin setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public String getLoginName() {
		return loginName;
	}
	public SysAdmin setLoginName(String loginName) {
		this.loginName = loginName;
		return this;
	}
	public String getLoginPass() {
		return loginPass;
	}
	public SysAdmin setLoginPass(String loginPass) {
		this.loginPass = loginPass;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public SysAdmin setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getToken() {
		return token;
	}
	public SysAdmin setToken(String token) {
		this.token = token;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public SysAdmin setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public SysAdmin setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public SysAdmin setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static SysAdmin sysAdmin(
		Long roleId,
		String loginName,
		String loginPass,
		String remark,
		String token,
		Integer status
			) {
		SysAdmin entity = new SysAdmin();
		entity.setRoleId(roleId);
		entity.setLoginName(loginName);
		entity.setLoginPass(loginPass);
		entity.setRemark(remark);
		entity.setToken(token);
		entity.setStatus(status);
		return entity;
	}
}